home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / archiver / compress.zoo / README < prev    next >
Text File  |  1989-06-30  |  2KB  |  43 lines

  1.  
  2. The enclosed files are the COMPRESS v4.3 file compression utility
  3. with modifications to compile on Minix-ST v1.1 with the ACK compiler.
  4. This version supports compression/decompression with up to 16 bits.
  5. It probably WON'T work (at least for >13 bit compression) under
  6. Minix-PC.
  7.  
  8.                 Dale Schumacher
  9.     bungia!midgard.mn.org!syntel!dal -or- dal@syntel.UUCP
  10.  
  11.  
  12. Notes on the port to MINIX-ST:
  13.  
  14. The get_one() function fails because MINIX won't support the dubious
  15. practice of reading from fd=2 (aka stderr).  Instead, "/dev/tty" is
  16. opened and read from directly.  This may not be the best way to handle
  17. this problem, but it works.  I took the example from the Minix
  18. distribution sources (compress.c,v 4.1 85/12/05 09:00:00 kent).
  19.  
  20. The defaults for the version of compress which was supplied with the
  21. MINIX-ST 1.1 distribution are apparently quite different from those
  22. of current Unix implementations.  I've added a compile-time switch
  23. to allow 'verbose' to be default TRUE.  I've also taken advantange
  24. of the switch for making 'keep source' also default TRUE.  The comments
  25. in the code imply that both of these options are typically defaulted
  26. to FALSE, but I've chosen to remain as close to the original compress
  27. as possible.  Similarly, the default number of bits to use is 13,
  28. although up to 16 will work properly.
  29.  
  30. In order to do 16-bit compression, you must "chmem =400000 compress".
  31. If you still get a "not enough memory to compress" error, bump the
  32. chmem value up a bit more.  If you only want to use 13 bits maximum
  33. for compression, "chmem =65000" seems to be sufficient.  Decompression
  34. takes far less space, so 16-bit decompression can be done even with
  35. the smaller chmem value.  You may even be able to make the value
  36. smaller and still do decompression, but the initial value from the
  37. compiler of about 45000 is not large enough to compress with 13 bits.
  38.  
  39. Just for peace-of-mind, I have verified that this compress can
  40. decompress files created with the original compress, and the
  41. original compress can decompress files created with this new
  42. compress, as long as you don't use more than 13 bits (of course).
  43.